import Vue from 'vue'
import App from './App.vue'
import store from './store'
import router from './router/index'
import ElementUI from 'element-ui'
import axios from 'axios'
import request from "../utils/request";
import 'element-ui/lib/theme-chalk/index.css'; //全局引入element的样式
//引入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import * as Quill from 'quill' // 引入编辑器
//图片缩放包
import ImageResize from 'quill-image-resize-module';
Quill.register('modules/imageResize', ImageResize);
//注册全局
Vue.use(VueQuillEditor);
Vue.config.productionTip = false
Vue.use(ElementUI, {
	size: 'mini'
})
Vue.prototype.request = request
//全局配置Ajax
Vue.prototype.$axios = axios
axios.defaults.baseURL = process.env.VUE_APP_BASEURL_API
new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')